package edu.zjut.sjq.service;

import edu.zjut.sjq.bean.Year;
import edu.zjut.sjq.mapper.YearMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/5/18.
 */
@Service
public class YearService {
    @Autowired
    private YearMapper yearMapper;

    //
    public Year selectByYear(Integer year){
        return yearMapper.selectByYear(year);
    }

    //
    public Year selectUncheckedYear(){
        return yearMapper.selectByTag(0);
    }
}
